package UVA;
import java.io.IOException;
import java.util.Scanner;

/*
 * @Author Josh Lear
 * @Date 4-15-2014
 * @Problem ad-hoc, easy mechanics
 */
class UVA_12279 {
    public static void main (String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        int counter = 1;
        while (true) {
            int cases = sc.nextInt();
            if (cases == 0) {
                break;
            }
            System.out.print("Case " + counter + ": ");
            counter++;
            int inc = 0;
            for (int i = 0; i < cases; i++) {
                int lol = sc.nextInt();
                if (lol > 0) {
                    inc++;
                } else {
                    inc--;
                }
            }
            System.out.print(inc + "\n");
        }
        sc.close();
    }
}
